package com.test.mqtt.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.test.mqtt.entity.Message;
import com.test.mqtt.mapper.MessageMapper;
import com.test.mqtt.service.MessageService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author flowlight
 * @since 2024-03-20
 */
@Service
public class MessageServiceImpl extends ServiceImpl<MessageMapper, Message> implements MessageService {
    @Resource
    private MessageMapper messageMapper;
    @Override
    public IPage pageCC(IPage<Message> page, Wrapper wrapper) {
        return messageMapper.pageCC(page,wrapper);
    }
}
//Service实现类 @Service将是将service对象注入springboot容器
//pageCC分页查询 我也不会用